﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucProduct.ascx.cs" Inherits="SES.CMS.AdminCP.PageUC.ucProduct" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<style type="text/css">
    td.tdTitle
    {
        height: 20px;
        margin-left: 2px;
        width: 100px;
        font-family: Times New Roman, Arial, Tahoma;
        font-size: 15px;
        color: #000;
    }
    td.tdTitle p
    {
        height: 20px;
        margin: 0px;
        padding: 0px;
        color: #000;
    }
    td.tdContent
    {
    }
</style>
<h2 class="h2-pro">
    Sản phẩm</h2>
<div class="dProduct">
    <div class="inside-product">
        <div class="left-ispro">
            <dl>
                <dt>
                    <label for="TenSanPham">
                        Mã sản phẩm:</label></dt>
                <dd>
                    <asp:TextBox ID="txtMaSanPham" runat="server" CssClass="text-input" TabIndex="1"></asp:TextBox></dd>
            </dl>
        </div>
        <div class="right-ispro">
            <dl>
                <dt>
                    <label for="">
                        Bộ sưu tập:
                    </label>
                </dt>
                <dd>
                    <asp:DropDownList ID="ddlCollection" runat="server" CssClass="ddl-input" TabIndex="2"
                        AppendDataBoundItems="true">
                        <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </dd>
            </dl>
        </div>
    </div>
    <div class="inside-product">
        <div class="left-ispro">
            <dl>
                <dt>
                    <label for="TenSanPham">
                        Tên sản phẩm:</label></dt>
                <dd>
                    <asp:TextBox ID="txtTenSanPham" runat="server" CssClass="text-input" TabIndex="3"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ErrorMessage="***" ControlToValidate="txtTenSanPham"></asp:RequiredFieldValidator></dd>
            </dl>
        </div>
        <div class="right-ispro">
            <dl>
                <dt>
                    <label for="TenSanPham">
                        Product name:</label></dt>
                <dd>
                    <asp:TextBox ID="txtProductName" runat="server" CssClass="text-input" TabIndex="4"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="***"
                        ControlToValidate="txtProductName"></asp:RequiredFieldValidator></dd>
            </dl>
        </div>
    </div>
    <div class="inside-product">
        <div class="left-ispro">
            <dl>
                <dt>
                    <label for="GiaBan">
                        Giá bán:</label></dt>
                <dd>
                    <asp:TextBox ID="txtGia" runat="server" CssClass="text-input" TabIndex="5"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtGia"
                        ErrorMessage="***" MaximumValue="9999999999" MinimumValue="0" Type="Double"></asp:RangeValidator></dd>
            </dl>
        </div>
        <div class="right-ispro">
            <dl>
                <dt>
                    <label for="GiaBan">
                        Price:</label></dt>
                <dd>
                    <asp:TextBox ID="txtPrice" runat="server" CssClass="text-input" TabIndex="6"></asp:TextBox>
                    <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtPrice"
                        ErrorMessage="***" MaximumValue="9999999999" MinimumValue="0" Type="Double"></asp:RangeValidator></dd>
            </dl>
        </div>
    </div>
    <div class="inside-product">
        <div class="left-ispro">
            <dl>
                <dt>
                    <label for="">
                        Giảm giá:
                    </label>
                </dt>
                <dd>
                    <asp:TextBox ID="txtGiamGia" runat="server" CssClass="text-input" TabIndex="7"></asp:TextBox>%
                    <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="txtGiamGia"
                        ErrorMessage="***" MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                </dd>
            </dl>
        </div>
        <div class="right-ispro">
            <dl>
                <dt>
                    <label for="">
                        Phân loại:
                    </label>
                </dt>
                <dd>
                    <asp:CheckBox ID="cbSanPhamMoi" runat="server" Text="Sản phẩm mới" TabIndex="8" />
                    <asp:CheckBox ID="cbSanPhamBanChay" runat="server" Text="Sản phẩm bán chạy" TabIndex="9" />
                </dd>
            </dl>
        </div>
    </div>
    <div class="inside-product">
        <div class="left-ispro">
            <dl>
                <dt>
                    <label for="">
                        Nhãn hiệu:
                    </label>
                </dt>
                <dd>
                    <asp:DropDownList ID="drpNhanHieu" runat="server" CssClass="ddl-input" TabIndex="10"
                        AppendDataBoundItems="true">
                        <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </dd>
            </dl>
        </div>
        <div class="right-ispro">
            <dl>
                <dt>
                    <label for="">
                        Loại sản phẩm:
                    </label>
                </dt>
                <dd>
                    <asp:DropDownList ID="drpLoaiSanPham" runat="server" CssClass="ddl-input" TabIndex="11"
                        AppendDataBoundItems="true">
                        <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </dd>
            </dl>
        </div>
    </div>
    <div class="inside-product">
        <div class="left-ispro">
            <dl>
                <dt>
                    <label for="">
                        Xuất xứ:
                    </label>
                </dt>
                <dd>
                    <asp:DropDownList ID="ddlXuatXu" runat="server" CssClass="ddl-input" TabIndex="12"
                        AppendDataBoundItems="true">
                        <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </dd>
            </dl>
        </div>
        <div class="right-ispro">
            <dl>
                <dt>
                    <label for="">
                        Đơn vị tính:
                    </label>
                </dt>
                <dd>
                    <asp:DropDownList ID="drpDonViTinh" runat="server" CssClass="ddl-input" TabIndex="13"
                        AppendDataBoundItems="true">
                        <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </dd>
            </dl>
        </div>
    </div>
    <div class="inside-product">
        <div class="left-ispro">
            <dl>
                <dt>
                    <label for="">
                        Ảnh đại diện:
                    </label>
                </dt>
                <dd>
                    <asp:FileUpload ID="fulImage" runat="server" TabIndex="14" />
                    <asp:HyperLink runat="server" Target="_blank" ID="hplImage" Text="[Xem ảnh]" Visible="false"
                        TabIndex="11"></asp:HyperLink>
                </dd>
            </dl>
        </div>
    </div>
    <div class="inside-product">
        <div class="left-ispro">
            <dl>
                <dt>
                    <label for="">
                        Thông tin khác:
                    </label>
                </dt>
                <dd>
                </dd>
            </dl>
        </div>
    </div>
    <div class="inside-product-tab">
        <asp:TabContainer TabIndex="15" ID="tcDetail" runat="server" ActiveTabIndex="1" Width="100%"
            CssClass="MyTabStyle">
            <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Mô tả">
                <ContentTemplate>
                    <asp:TextBox ID="txtMota" Width="99%" Height="180px" runat="server" TextMode="MultiLine"></asp:TextBox>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Mô tả chi tiết">
                <ContentTemplate>
                    <CKEditor:CKEditorControl ID="txtMoTaChiTiet" runat="server"></CKEditor:CKEditorControl>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel6" runat="server" HeaderText="Thông tin bảo hành">
                <ContentTemplate>
                    <CKEditor:CKEditorControl ID="txtBaoHanh" runat="server"></CKEditor:CKEditorControl>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel4" Visible="true" runat="server" HeaderText="Từ khóa">
                <ContentTemplate>
                    Tags:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
                    <asp:TextBox ID="txtTuKhoa" TextMode="MultiLine" runat="server" Width="50%"></asp:TextBox>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Description">
                <ContentTemplate>
                    <asp:TextBox ID="txtDescription" Width="99%" Height="180px" runat="server" TextMode="MultiLine"></asp:TextBox>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel5" runat="server" HeaderText="Detail Description">
                <ContentTemplate>
                    <CKEditor:CKEditorControl ID="txtDetailDescription" runat="server"></CKEditor:CKEditorControl>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanel7" runat="server" HeaderText="Warranty">
                <ContentTemplate>
                    <CKEditor:CKEditorControl ID="txtWarranty" runat="server"></CKEditor:CKEditorControl>
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
    </div>
    <div class="inside-product">
        <asp:LinkButton ID="btSave" OnClick="btSave_Click" runat="server" CssClass="awesome-button awe-spark"
            Text="Lưu"></asp:LinkButton>
        <asp:LinkButton ID="btnCancel" OnClick="btnCancel_Click"  runat="server" CssClass="awesome-button awe-delete" CausesValidation="false"
            Text="Hủy"></asp:LinkButton>
    </div>
</div>
